package com.sunwhite.service.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/version")
public class VersionController {

    @Value("${server.port}")
    private Integer serverPort;

    @Value("${eureka.instance.metadata-map.version}")
    private Integer version;


    @RequestMapping("/data")
    public String date(){
        return "version:"+version+",serverPort:"+serverPort;
    }

}
